package com.zhu.SupermarketInventoryManagement.model.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("goods")//要对应到的表名
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GoodsDO {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("price")
    private Double price;
    @TableField("cost")
    private Double cost;
    @TableField("categoryId")
    private String categoryId;
    @TableField("number")
    private Integer number;
    @TableField("adminId")
    private Integer adminId;
}
